import React, {Component} from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import './css/label.css'
/**
 * 文本
 */
class Label extends Component {
    constructor(props){
        super(props);
    }
    render() {
        let props = this.props
        let { className, id, children} = props
        className = classNames({[`${id}`]: id})
        return (
            <p className={className} id={id}>{children}</p>
        )
    }
}
Label.defaultProps = {

}
Label.propTypes = {
    id: PropTypes.string
}
export default Label;